require('dotenv').config(); //获取配置文件
module.exports = {
    port: process.env.PORT || 8888,
    db: {
        host: process.env.DB_HOST || 'localhost',
        port: process.env.DB_PORT || 3306, // 添加数据库端口配置
        user: process.env.DB_USER || 'root',
        password: process.env.DB_PASSWORD || 'Zyj630787',
        database: process.env.DB_DATABASE || 'promise_test_database',
        waitForConnections: true, // 等待连接
        connectionLimit: 10, // 连接池大小
        queueLimit: 0 // 队列大小,设置成0表示队列无限制
    }
}